package com.yangye.otherdemo.classloader;

public class EscapeDemo {

	public static void main(String[] args) {
		long start = System.currentTimeMillis();
		for (int i = 0; i < 1000000; i++) {
			alloc();
		}

		long end = System.currentTimeMillis();
		System.out.println((end - start) + "ms");

//		try {
//			Thread.sleep(100000);
//		} catch (InterruptedException e) {
//			e.printStackTrace();
//		}
	}

	public static void alloc() {
		User user = new User();
	}

	static class User {
		String name;
	}
}
